Skip to content

Fix new chat's message box position and fix popover layout#4

Draft
caseyjkey wants to merge 2 commits intodevfrom
chat-input-bottom-mobile
Draft

Fix new chat's message box position and fix popover layout#4
caseyjkey wants to merge 2 commits intodevfrom
chat-input-bottom-mobile

Conversation

@caseyjkey
Copy link
Copy Markdown
Collaborator

@caseyjkey caseyjkey commented Feb 18, 2026

This PR fixes the new chat's message box to be sticky to the bottom as intended by existing code/comments. It also remedies several rendering glitches in agent input popover.

  • Message box sticky to bottom of viewport
  • Set the initial visiblity of the AgentInput popover's bottom inset shadow to fix snap-in effect

Verified on Android dev app:

  • Large message box sizes with multiple blank lines
  • Keyboard open and closed states
  • AgentInput Popover remains stable when keyboard toggles
  • AgentInput bottom edge fade renders smoothly without content shifting
  • AgentInput is scrollable and shows bottom/top indicators

@caseyjkey caseyjkey force-pushed the chat-input-bottom-mobile branch from 142273a to e4d6e2e Compare February 18, 2026 01:18
flex: 1,
width: '100%',
// Keep the content centered on web. Without this, the boundary wrapper (flex:1)
// can cause the inner content to stick to the top even when the modal is centered.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the case, let me know if we want the app to always have the chat on the bottom instead of centered for new chats.

@caseyjkey caseyjkey changed the title Center message box and fix popover layout Fix new chat's message box position and fix popover layout Feb 18, 2026
@caseyjkey caseyjkey marked this pull request as draft February 18, 2026 02:48
@caseyjkey caseyjkey force-pushed the chat-input-bottom-mobile branch from e4d6e2e to 1a00e3c Compare February 18, 2026 06:39
@caseyjkey caseyjkey force-pushed the chat-input-bottom-mobile branch 3 times, most recently from 017ddcd to eab341e Compare February 18, 2026 07:11
caseyjkey and others added 2 commits February 26, 2026 19:50
- Remove native anchor-to-composer workaround

- Cap width like other agent-input popovers

- Add unit test covering popover props
@leeroybrun leeroybrun force-pushed the chat-input-bottom-mobile branch from d7a8149 to 14e7e3f Compare February 26, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants